/*

Author   : chaos

FileName : fun_excp.cpp

Date     : 16/08/17 19:02:22

*/
#include <iostream>
#include <string>
using namespace std;

void ExcpFun3()
{
    throw string("Throwing exception from ExcpFun3 !\n");
}


void ExcpFun2(){
    ExcpFun3();
}

void ExcpFun1()
{
    ExcpFun2();
}

int main(int argc ,char *argv[])
{
    try{
        ExcpFun1();
    }
    catch (string s){ cerr << s; }
    return 0;
}
